import { Injectable } from '@nestjs/common';
import { request } from '../utils/request';
import { Okx } from './okx.interface';
import { AxiosResponse } from 'axios';
import { Observable } from 'rxjs';
import { error } from 'console';

const option = {
  url: '/api/v5/account/balance',
  // baseURL: '/okxs',
  method: 'GET',
};

@Injectable()
export class OkxService {
  async getuserInfo() {
    const { url, method } = option;
    const res = await request({
      url: url,
      method,
    });
    return res;
  }
}
